<?php

namespace frontend\models;

use Yii;
use yii\base\Model;
use frontend\models\User;

class Codee extends User
{
    /**
     * @inheritdoc
     */
	public $verify;
    public $user_email;



    public function rules()
    {
        return [
            [['verify','user_email'], 'required','message'=>'当前项不能为空'],
			['user_email', 'email','message'=>'请输入正确的邮箱'],
            ['verify', 'captcha', 'captchaAction' => 'center/captcha'],
            ['user_email', 'unique', 'targetAttribute' => 'user_email',  'message'=>'手机号已被占用'],
        ];
    }

	public function attributeLabels()
	{
		return [
			'verify'=>'',
			'user_email'=>'',
		];
	}
}
